package com.zerui.manager.web.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotEmpty;

/**
 * @Author wh
 * @create_time 2023-08-30 13:51
 */
@Getter
@Setter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude
public class AccessAuthPersonnelVO {

    @ApiModelProperty(value = "人员id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ApiModelProperty("所属公司/组织id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long orgId;

    @ApiModelProperty("所属公司/组织名称")
    private String orgName;

    @ApiModelProperty("人员姓名")
    private String name;

    @NotEmpty(message = "人员编号不能为空")
    @ApiModelProperty("人员编号")
    private String number;

    @ApiModelProperty("人脸信息URL")
    private String faceImgUrl;

    @ApiModelProperty("身份证号")
    private String idCode;

    @ApiModelProperty("证件类型 身份证、员工证、其他")
    private String idType;

    @ApiModelProperty("人员类型 字典值")
    private String personType;

    @ApiModelProperty("门禁授权id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long accessAuthId;

    @ApiModelProperty("IC卡号")
    private String iccCardNum;

}
